<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>lineitem - write</title>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript">
	<!--
		function goEdit() {
			var f = document.lineitemCriteriaForm;
			f.action = '/lineitemEdit.do';
			f.method = 'get';
			f.elements["mode"].value = 'edit';
			f.submit();
		}
		
		function goDelete() {
			var f = document.lineitemCriteriaForm;
			f.action = '/lineitem.do';
			f.method = 'post';
			f.elements["mode"].value = 'delete';
			f.submit();
		}

		function goList() {
			var f = document.lineitemCriteriaForm;
			f.action = '/lineitem.do';
			f.method = 'get';
			f.elements["mode"].value = 'list';
			f.submit();
		}
	//-->
	</script>
</head>
<body>

	<p>
		<a href="/">home</a>
	</p>

	<h1>Lineitem - detail</h1>

	<form:form commandName="lineitemCriteria" id="lineitemCriteriaForm"
		name="lineitemCriteriaForm" action="/lineitem.do" method="get">
		<input type="hidden" name="mode" />
		<form:hidden path="linenum" />
		<form:hidden path="orderid" />
		<form:hidden path="paging.currentPage" />
	</form:form>

	<table width="800">
		<colgroup width="800">
			<col width="100" />
			<col width="*" />
		</colgroup>
		<tr>
			<th>orderid</th>
			<td><c:out value="${lineitem.orderid}" /></td>
		</tr>
		<tr>
			<th>linenum</th>
			<td><c:out value="${lineitem.linenum}" /></td>
		</tr>
		<tr>
			<th>itemid</th>
			<td><c:out value="${lineitem.itemid}" /></td>
		</tr>
		<tr>
			<th>quantity</th>
			<td><c:out value="${lineitem.quantity}" /></td>
		</tr>
		<tr>
			<th>unitprice</th>
			<td><c:out value="${lineitem.unitprice}" /></td>
		</tr>
	</table>

	<p />

	<a href="<c:url value='javascript:goEdit();'/>">edit</a>
	<a href="<c:url value='javascript:goDelete();'/>">delete</a>
	<a href="<c:url value='javascript:goList();'/>">list</a>

</body>
</html>
